import json

# 创建一个空列表来存储JSON对象
json_list = []

# 循环100次来创建JSON对象
for i in range(1, 101):
    json_object = {
        "username": f"zty{i}",
        "password": "zty",
        "salt": "",
        "email": "",
        "mobile": "",
        "status": 1,
        "roleIdList": []
    }
    json_list.append(json_object)

# 将结果转换为JSON格式的字符串
json_string = json.dumps(json_list, indent=2, ensure_ascii=False)

# 将结果写入文件
with open('user100.json', 'w', encoding='utf-8') as f:
    f.write(json_string)

